/**
 * 接收信息员工设置
 * @author linfeng
 * @since 2019/12/24
 */
layui.define(['index', 'form', 'table', 'laypage', 'layedit'], function (exports) {
    var $ = layui.$;
    var form = layui.form;
    var layer = layui.layer;
    var table = layui.table;
    var laypage = layui.laypage;
    var layedit = layui.layedit;

    form.render();

    table.init('zmn-table', {
        toolbar: "#zmn-table-tool",
        page: true,
        defaultToolbar: [''],
        limit: json.pageSize,
        height: 'full-149'
    });

    laypage.render(zmnPage.laypageOptions(json));

    //对外暴露的接口
    exports('msg_conf_receivestaff_list_js', {});
});

function addMsgConfStaff(msgId) {
    zmnLayUtil.openIframeCustom(layer, "/msg/conf/receive/staff/detail.action?msgId="+msgId, {title: "新增员工", shade: 0.8, area:["480px", "270px"]});
}

function deleteMsgConfStaff(id) {
    zmnPage.ajaxSimple("/msg/conf/receive/staff/delete.action", {id: id}, 1500);
}

